<?php

if (!defined('IN_Deep')) exit('Hacking attempt!');

$sql_install = "


DROP TABLE IF EXISTS " . tablename('demo_wechat_order') . " ;
CREATE TABLE " . tablename('demo_wechat_order') . "   (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uniacid` int(11) DEFAULT 0 COMMENT '公众号id',
  `order_no` varchar(255) DEFAULT '' COMMENT '订单号',

  `status` varchar(255) DEFAULT '' COMMENT '订单状态（未付款,已付款）',
  
  `payment_time` int(11) DEFAULT NULL COMMENT '付款时间',
  `create_time` int(11) DEFAULT NULL COMMENT '创建时间',

  PRIMARY KEY (`id`) 
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COMMENT='订单表';




";

$GLOBALS['db']->query($sql_install);

//require 'sql_init.php';